Component({
  data: {
    currentIndex: 0
  },
  methods: {    
    hTab(e) {
      const index = e.mark.index
      this.setData({
        currentIndex: index
      })
      console.log(e);
    }
  }
})